// !!! 此页面的路径都会报错不知道为什么，所以先禁用了ts检查，对开发暂时无影响
//  有知道为什么的记得告诉我

import type { RouteRecordRaw } from "vue-router"
// @ts-ignore
import Home from "@/pages/Home/index.vue"

export const staticRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/category',
    // @ts-ignore
    component: () => import('@/pages/Category/index.vue')
  },
  {
    path: '/list',
    // @ts-ignore
    component: () => import('@/pages/List/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/zhide',
    // @ts-ignore
    component: () => import('@/pages/ZhiDeMai/index.vue')
  },
  {
    path: '/cart',
    // @ts-ignore
    component: () => import('@/pages/Cart/index.vue')
  },
  {
    path: '/my',
    // @ts-ignore
    component: () => import('@/pages/My/index.vue')
  },
  {
    path: '/login',
    // @ts-ignore
    component: () => import('@/pages/Login/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/detail',
    // @ts-ignore
    component: () => import('@/pages/Detail/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/order',
    // @ts-ignore
    component: () => import('@/pages/Order/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/pay',
    // @ts-ignore
    component: () => import('@/pages/Pay/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/search',
    // @ts-ignore
    component: () => import('@/pages/Search/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/:id(.*)*',
    name: 'Any',
    redirect: '/404',
  },
  {
    path: '/404',
    // @ts-ignore
    component: () => import('@/pages/404/index.vue'),
    meta: {
      hidden: true
    }
  },
]
